package com.tmptSource.mapper;

import com.tmptSource.bean.*;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;
import com.tmptSource.mapper.MyBaseMapper;


/**
 * Created by wxy on 2016/7/29.
 */
@Component(value="owDoorRespInfoMapper")
public interface OwDoorRespInfoMapper extends MyBaseMapper<OwDoorRespInfo>{
    /**
     * 根据企业名称查询id helen
     * @param
     * @return id
     * 2019-11-25
     * helen
     */
    public long selectIdByEntName(String  entName);
    /**
     * 根据企业名称查询是否有记录 helen
     * @param
     * @return id
     * 2019-11-25
     * helen
     */
    public long selectCountByEntName(String  entName);
    /**
     * 根据randomKey值查找出ID
     * @param randomKey
     * @return id
     * 2019-11-10
     * helen
     */
    public long selectIdByKey(String  randomKey);

    /**
     * 排除randomKey这条记录以外，相同名称企业名称不允许编辑
     * @param mapParameter ：randomKey，entName
     * @return
     */
    public long selectCountByEntNameExcludeRandomKey(Map<String,Object> mapParameter);

}
